<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>订单打印</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
	table{width: 100%;
        border-top:1px solid #000;
        border-left: 1px solid #000}
	td{ border-right: 1px solid #000;
        border-bottom:1px solid #000;}
</style>

<style   media="print">   
  .Noprint   {   DISPLAY:   none;}   
  .PageNext   {   PAGE-BREAK-AFTER:   always   }   
</style>  

</head>
<body>
    {volist name="list" id='vo'}
    <h1 style="font-size: 18px; margin: 0; text-align: center;">采购单{$vo.purchase_id}</h1>
    <div style="text-align: right">
        采购员：{$vo.employee_name} 分配时间：{:date('Y-m-d H:i',strtotime($vo['create_time']))}
    </div>
    <table cellspacing="0" class="">
    	<tr align="center">
    		<td>商品名称</td>
            <td>规格</td>
    		<td>采购数量</td>
            <td>订单明细</td>
    		<td>供应商</td>
    		<td>当前售价</td>
    		<!-- <td>上次采购价格</td> -->
    		<td>本次采购价格</td>
            <td width="10%">备注</td>
    	</tr>
    	
    	{volist name="vo['list']" id="v"}
    	<tr class="goodsInfo">
    		<td>{$v.brand_name}*{$v.goods_name}</td>
            <td>{$v.specval_name}</td>
            <td align="center">{$v['num']}</td>
            <td>
                {volist name="v['order']" id='o'}
                    <p style="">{$o.receiver_name}（{$o.shop_name}） x{$o.num}</p>
                {/volist}
            </td>
            <td><p style="max-width: 100px;">{$v.supplier_name}  {$v.charge_phone}</p></td>
            <td align="right">¥ {:number_format($v['price'],2)}</td>
            <!-- <td align="right">¥ {:number_format($v['last_price'],2)}</td> -->
            <td></td><td></td> 
    	</tr>
    	{/volist}
    	<tr class="goodsInfo">
            <td colspan="2">统计：</td>
            <td align="center">{$vo.totalnum}</td>
            <td></td><td></td>
            <td align="right">¥ {:number_format($vo['total_price'],2)}</td>
            <!-- <td align="right">¥ {:number_format($vo['total_last_price'],2)}</td> -->
            <td></td><td></td>
        </tr>
    </table>
    <div style="padding: 30px 100px; text-align: right;">采购员签字：</div>
    <div class="PageNext"></div>
    {/volist}
    <script type="text/javascript">
    	window.onload = function(){
    		window.print();
    		setTimeout(function(){
    			window.parent.closeIfram();
    		},1000)
    	}
    </script>
</body>
</html>